package com.eduplatform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eduplatform.entity.BlacklistToken;

public interface BlacklistTokenService extends IService<BlacklistToken> {

    /**
     * Add token to blacklist
     * 
     * @param token      JWT token
     * @param expireTime token expire time
     * @return true if added successfully, false otherwise
     */
    boolean addToBlacklist(String token, java.util.Date expireTime);

    /**
     * Check if token is in blacklist
     * 
     * @param token JWT token
     * @return true if token is in blacklist, false otherwise
     */
    boolean isInBlacklist(String token);
}